|
Magic words (which include parser functions, variables and behavior switches) are features of wiki markup that enable various instructions to be given to the MediaWiki software. For example, the magic words may be used to suppress or position the table of contents, or to produce other variable outputs, as is often required in templates. A quick reference for magic words can be found on this page. For more complete documentation, see the following pages on the MediaWiki site: * mw:Help:Magic words for all standard magic words, including the "standard" parser functions * mw:Help:Extension:ParserFunctions for some additional parser functions, including conditional expressions == General information == There are three types of magic words: :# Behavior switches: uppercase words surrounded by double underscores, e.g., or other keywords using parser function syntax:# Variables: uppercase words surrounded by double braces (thus resembling templates), e.g.
:# Parser functions: keywords in double braces with parameters after a colon (some beginning with #), e.g.
Some magic words are case-insensitive, but not all. White space is stripped from the start and end of keywords and parameters, as in template syntax. Page-dependent magic words will affect or return data about the ''current'' page, even if the word is added through a transcluded template or included system message. It is possible to substitute parser functions and most variables in the same way that templates are substituted (using the subst: keyword). This causes their current value (as evaluated at the time of substitution) to be written into the wikitext.抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Help:Magic words」の詳細全文を読む スポンサード リンク
|